<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<!--    <h1>Hello,Blog!</h1>-->
<h1>
    <a href="">新文章</a>
</h1>
{% for article in articles %}<!--{'articles':articles}  for 循环中的articles 是dict中的键-->
    <a href="{% url 'blog:article_page' article.id %}"> {{ article.title }} <br /></a>

<!--  url 'app_name:url_name' param -->
<!--    <h3>{{ i.content}}</h3>-->
{% endfor %}

<!--只有一个数据时

    <h1>{{ article.title }}</h1>
    <h3>{{ article.content}}</h3>
-->
</body>
</html>